<?php


namespace app\admin\controller;

use tmcore\base\BaseController;
use think\App;

class AdminController extends BaseController
{
    /**
     * 管理员id
     */
    protected $adminId = 0;

    /**
     * 管理员信息
     */
    protected $adminInfo;

    /**
     * 初始化方法
     * @return bool|mixed
     */
    public function initialize()
    {
        if (isset($this->request->adminInfo) && $this->request->adminInfo) {
            $this->adminInfo = $this->request->adminInfo;
            $this->adminId = $this->request->adminInfo['id'];
        }
    }
}